﻿using Admin.Common;
using Admin.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using YTCMS.Domain.Entities;

namespace Admin.Controllers
{
    [YTAuthorize]
    public class BaseController: Controller
    {
        protected users current
        {
            get
            {
                return WZTContext.current;
            }
        }
        public BaseController()
        {
            if (current != null)
            {
                ViewBag.UserName = current.UserName;
            }
            else
            {
                ViewBag.UserType = null;
                ViewBag.UserName = "请登录";
            }


        }
    }
}